import request from '@/utils/request'

// 用户列表get
export function userList(params) {
  return request({
    url: '/operation/user/account/pages',
    method: 'get',
    params: params
  })
}
// 用户列表状态日志
export function userLog(data) {
  return request({
    url: '/operation/user/account/log',
    method: 'get',
    params: data
  })
}
// 用户列表登录日志
export function userLoginLog(params) {
  return request({
    url: '/operation/user/account/login/log',
    method: 'get',
    params: params
  })
}
// 用户列表获取「用户账号」
export function userNumber(id) {
  return request({
    url: `/operation/user/account/${id}`,
    method: 'get',
  })
}
// 用户列表更新「用户账号」
export function userUpdate(data) {
  return request({
    url: '/operation/user/account/updateStatus',
    method: 'post',
    data: data
  })
}

// 上传apk
export function fileUploading(data) {
  return request({
    url: '/operation/user/app/version/uploadApk',
    method: 'post',
    data: data
  })
}

// 敏感词get
export function sensitiveList(params) {
  return request({
    url: '/operation/user/sensitiveMaterials/pages',
    method: 'get',
    params: params
  })
}
// 敏感词添加
export function sensitiveAdd(data) {
  return request({
    url: '/operation/user/sensitiveMaterials/add',
    method: 'post',
    data: data
  })
}
// 敏感词删除
export function sensitiveDelete(data) {
  return request({
    url: '/operation/user/sensitiveMaterials/delete',
    method: 'post',
    data: data
  })
}
// 版本管理get
export function versionList(params) {
  return request({
    url: '/operation/user/app/version/pages',
    method: 'get',
    params: params
  })
}
// 版本管理添加add
export function versionAdd(data) {
  return request({
    url: '/operation/user/app/version/add',
    method: 'post',
    data: data
  })
}
// 版本管理删除delete
export function versionDelete(data) {
  return request({
    url: '/operation/user/app/version/delete',
    method: 'post',
    data: data
  })
}
// 版本管理过低under
export function versionUnder(data) {
  return request({
    url: '/operation/user/app/version/under',
    method: 'post',
    data: data
  })
}
// 版本管理更新update
export function versionUpdate(data) {
  return request({
    url: '/operation/user/app/version/update',
    method: 'post',
    data: data
  })
}
// 版本管理发布publish
export function versionPublish(data) {
  return request({
    url: '/operation/user/app/version/publish',
    method: 'post',
    data: data
  })
}
// 帮助中心问题
export function docList(params) {
  return request({
    url: '/operation/user/helpCenter/doc/pages',
    method: 'get',
    params: params
  })
}
// 帮助中心类别
export function categoriesList(params) {
  return request({
    url: '/operation/user/helpCenter/categories/pages',
    method: 'get',
    params: params
  })
}
// 帮助中心类别add
export function categoriesAdd(data) {
  return request({
    url: '/operation/user/helpCenter/categories/add',
    method: 'post',
    data: data
  })
}
// 帮助中心删除
export function categoriesDelete(data) {
  return request({
    url: '/operation/user/helpCenter/delete',
    method: 'post',
    data: data
  })
}
// 帮助中心问题add
export function docAdd(data) {
  return request({
    url: '/operation/user/helpCenter/doc/add',
    method: 'post',
    data: data
  })
}
// 帮助中心doc更新
export function docUpdate(data) {
  return request({
    url: '/operation/user/helpCenter/doc/update',
    method: 'post',
    data: data
  })
}
// 帮助中心categories更新
export function categoriesUpdate(data) {
  return request({
    url: '/operation/user/helpCenter/categories/update',
    method: 'post',
    data: data
  })
}
// 帮助中心categories排序
export function categoriesSort(data) {
  return request({
    url: '/operation/user/helpCenter/categories/sort',
    method: 'post',
    data: data
  })
}
// 帮助中心doc排序
export function docSort(data) {
  return request({
    url: '/operation/user/helpCenter/doc/sort',
    method: 'post',
    data: data
  })
}
// 规则与条款文档
export function ruleDocList(params) {
  return request({
    url: '/operation/user/rules/doc/pages',
    method: 'get',
    params: params
  })
}
// 规则与条款版本
export function ruleVerList(params) {
  return request({
    url: '/operation/user/rules/docContent/pages',
    method: 'get',
    params: params
  })
}
// 规则与条款文档add
export function ruleDocAdd(data) {
  return request({
    url: '/operation/user/rules/doc/add',
    method: 'post',
    data: data
  })
}
// 规则与条款delete
export function ruleDocDelete(data) {
  return request({
    url: '/operation/user/rules/delete',
    method: 'post',
    data: data
  })
}
// 规则与条款update
export function ruleDocUpdate(data) {
  return request({
    url: '/operation/user/rules/doc/update',
    method: 'post',
    data: data
  })
}
// 规则与条款新增「版本内容add
export function ruleContentAdd(data) {
  return request({
    url: '/operation/user/rules/docContent/add',
    method: 'post',
    data: data
  })
}
// 规则与条款新增「版本内容update
export function ruleContentUpdate(data) {
  return request({
    url: '/operation/user/rules/docContent/update',
    method: 'post',
    data: data
  })
}
// 规则与条款publish
export function rulePublish(data) {
  return request({
    url: '/operation/user/rules/publish',
    method: 'post',
    data: data
  })
}
// 规则与条款sort
export function ruleSort(data) {
  return request({
    url: '/operation/user/rules/sort',
    method: 'post',
    data: data
  })
}
// 关于我们文档
export function aboutDocList(params) {
  return request({
    url: '/operation/user/about/doc/pages',
    method: 'get',
    params: params
  })
}
// 关于我们版本
export function aboutVerList(params) {
  return request({
    url: '/operation/user/about/docContent/pages',
    method: 'get',
    params: params
  })
}
// 关于我们版本add
export function aboutDocAdd(data) {
  return request({
    url: '/operation/user/about/doc/add',
    method: 'post',
    data: data
  })
}
// 关于我们doc更新
export function aboutDocUpdate(data) {
  return request({
    url: '/operation/user/about/doc/update',
    method: 'post',
    data: data
  })
}
// 关于我们delete
export function aboutDocDelete(data) {
  return request({
    url: '/operation/user/about/delete',
    method: 'post',
    data: data
  })
}
// 关于我们发布
export function publishDoc(data) {
  return request({
    url: '/operation/user/about/publish',
    method: 'post',
    data: data
  })
}
// 关于我们版本内容add
export function docContentAdd(data) {
  return request({
    url: '/operation/user/about/docContent/add',
    method: 'post',
    data: data
  })
}
// 关于我们版本内容add
export function updateContent(data) {
  return request({
    url: '/operation/user/about/updateContent',
    method: 'post',
    data: data
  })
}
// 关于我们排序sort
export function aboutSort(data) {
  return request({
    url: '/operation/user/about/sort',
    method: 'post',
    data: data
  })
}
// 页面按钮权限控制
export function fetchAllResourceList(params) {
  return request({
    url: '/base/resource/listCurrent',
    method: 'get',
    params: params
  })
}
// 系统账号
export function sysList(params) {
  return request({
    url: '/base/admin/list',
    method: 'get',
    params: params
  })
}
// 用户名搜索用户
export function getNameList(params) {
  return request({
    url: '/base/admin/loadByUsername',
    method: 'get',
    params: params
  })
}
// 获取所有角色
export function getAllRole() {
  return request({
    url: '/base/role/listAll',
    method: 'get',
  })
}
// 查询员工角色
export function getNameRole(params) {
  return request({
    url: '/base/admin/employees',
    method: 'get',
    params: params
  })
}
// 系统账号添加账号
export function sysAdd(data) {
  return request({
    url: '/base/admin/register',
    method: 'post',
    data: data
  })
}
// 系统账号修改账号
export function sysUpdate(data) {
  return request({
    url: '/base/admin/update',
    method: 'post',
    data: data
  })
}
// 系统账号删除账号
export function sysDelete(id) {
  return request({
    url: `/base/admin/delete/${id}`,
    method: 'post',
  })
}
// 获取树形菜单
export function getResourceTree() {
  return request({
    url: '/base/menu/treeWithResourceList',
    method: 'get',
  })
}
// 根据id获取树形菜单详情
export function getDetailTree(id) {
  return request({
    url: `/base/role/detail/${id}`,
    method: 'get',
  })
}
// 角色管理添加角色
export function roleCreate(data) {
  return request({
    url: `/base/role/create`,
    method: 'post',
    data: data
  })
}
// 角色管理修改角色
export function roleUpdate(data) {
  return request({
    url: `/base/role/update`,
    method: 'post',
    data: data
  })
}
// 获取资源所有菜单查询
export function getAllMenu() {
  return request({
    url: `/base/menu/list`,
    method: 'get',
  })
}
// 获取资源新增菜单查询
export function getAddMenu() {
  return request({
    url: `/base/menu/leafList`,
    method: 'get',
  })
}
// 目的地推荐 分页查询
export function recommendList() {
  return request({
    url: `/operation/destinationHotRecommend/list`,
    method: 'post',
    data: {}
  })
}
// 目的地推荐 删除
export function recommendDelete(id) {
  return request({
    url: `/operation/destinationHotRecommend/delete/${id}`,
    method: 'post',
  })
}
// 目的地推荐 add
export function recommendAdd(data) {
  return request({
    url: `/operation/destinationHotRecommend/create`,
    method: 'post',
    data: data
  })
}
// 目的地推荐 update
export function recommendUpdate(data) {
  return request({
    url: `/operation/destinationHotRecommend/update`,
    method: 'post',
    data: data
  })
}
// 目的地推荐 sort
export function recommendSort(data) {
  return request({
    url: `/operation/destinationHotRecommend/sortAllByIds`,
    method: 'post',
    data: data
  })
}
// 目的地分组 分页查询
export function groupList() {
  return request({
    url: `/operation/destinationGroup/list`,
    method: 'post',
    data: {}
  })
}
// 目的地分组 删除
export function groupDelete(id) {
  return request({
    url: `/operation/destinationGroup/delete/${id}`,
    method: 'post',
  })
}
// 目的地分组 add
export function groupAdd(data) {
  return request({
    url: `/operation/destinationGroup/create`,
    method: 'post',
    data: data
  })
}
// 目的地分组 update
export function groupUpdate(data) {
  return request({
    url: `/operation/destinationGroup/update`,
    method: 'post',
    data: data
  })
}
// 目的地分组 sort
export function groupSort(data) {
  return request({
    url: `/operation/destinationGroup/sortAllByIds`,
    method: 'post',
    data: data
  })
}
// 目的地国家 分页查询
export function countryList(data) {
  return request({
    url: `/operation/destinationCountryRecommend/list`,
    method: 'post',
    data: data
  })
}
// 目的地国家 删除
export function countryDelete(id) {
  return request({
    url: `/operation/destinationCountryRecommend/delete/${id}`,
    method: 'post',
  })
}
// 目的地国家 add
export function countryAdd(data) {
  return request({
    url: `/operation/destinationCountryRecommend/create`,
    method: 'post',
    data: data
  })
}
// 目的地国家 update
export function countryUpdate(data) {
  return request({
    url: `/operation/destinationCountryRecommend/update`,
    method: 'post',
    data: data
  })
}
// 目的地国家 sort
export function countrySort(data) {
  return request({
    url: `/operation/destinationCountryRecommend/sortAllByIds`,
    method: 'post',
    data: data
  })
}
// 目的地 分页查询
export function destinationList(data) {
  return request({
    url: `/operation/destinationRecommend/list`,
    method: 'post',
    data: data
  })
}
// 目的地 删除
export function destinationDelete(id) {
  return request({
    url: `/operation/destinationRecommend/delete/${id}`,
    method: 'post',
  })
}
// 目的地 add
export function destinationAdd(data) {
  return request({
    url: `/operation/destinationRecommend/create`,
    method: 'post',
    data: data
  })
}
// 目的地 update
export function destinationUpdate(data) {
  return request({
    url: `/operation/destinationRecommend/update`,
    method: 'post',
    data: data
  })
}
// 目的地 sort
export function destinationSort(data) {
  return request({
    url: `/operation/destinationRecommend/sortAllByIds`,
    method: 'post',
    data: data
  })
}
// 国家 列表查询
export function countryQuer(params) {
  return request({
    url: `/operation/country/list`,
    method: 'get',
    params: params
  })
}
// 城市 列表查询
export function cityList(params) {
  return request({
    url: `/operation/city/list`,
    method: 'get',
    params: params
  })
}
// 目的地分组 分页查询
export function destinationPage(data) {
  return request({
    url: `/operation/destinationGroup/list`,
    method: 'post',
    data: data
  })
}
// 活动管理 列表
export function activityList(params) {
  return request({
    url: `/operation/activity/pages`,
    method: 'get',
    params: params
  })
}
// 活动管理 列表add
export function activityAdd(data) {
  return request({
    url: `/operation/activity/add`,
    method: 'post',
    data: data
  })
}
// 活动管理 列表update
export function activityUpdate(data) {
  return request({
    url: `/operation/activity/update`,
    method: 'post',
    data: data
  })
}
// 活动管理 列表delete
export function activityDelete(data) {
  return request({
    url: `/operation/activity/delete`,
    method: 'post',
    data: data
  })
}
// 活动管理 列表showOrHide
export function activityShow(data) {
  return request({
    url: `/operation/activity/showOrHide`,
    method: 'post',
    data: data
  })
}
// 活动管理 票务须知管理
export function noticeList(params) {
  return request({
    url: `/operation/activity/comNotice/pages`,
    method: 'get',
    params: params
  })
}
// 活动管理 票务须知delete
export function noticeDelete(data) {
  return request({
    url: `/operation/activity/comNotice/delete`,
    method: 'post',
    data: data
  })
}
// 活动管理 票务须知add
export function noticeAdd(data) {
  return request({
    url: `/operation/activity/comNotice/add`,
    method: 'post',
    data: data
  })
}
// 活动管理 票务须知sort
export function noticeSort(data) {
  return request({
    url: `/operation/activity/comNotice/sort`,
    method: 'post',
    data: data
  })
}
// 活动管理 票务须知update
export function noticeUpdate(data) {
  return request({
    url: `/operation/activity/comNotice/update`,
    method: 'post',
    data: data
  })
}
// 活动管理 票务须知enabled
export function noticeEnabled(data) {
  return request({
    url: `/operation/activity/comNotice/enabled`,
    method: 'post',
    data: data
  })
}
// 活动管理 活动巡演
export function toursList(params) {
  return request({
    url: `/operation/activity/tours/pages`,
    method: 'get',
    params: params
  })
}
// 活动管理 活动巡演查询活动search
export function toursSearch(params) {
  return request({
    url: `/operation/activity/tours/search`,
    method: 'get',
    params: params
  })
}
// 活动管理 活动巡演查看活动
export function toursLook(id) {
  return request({
    url: `/operation/activity/tours/${id}`,
    method: 'get',
  })
}
// 活动管理 活动巡演add
export function toursAdd(data) {
  return request({
    url: `/operation/activity/tours/add`,
    method: 'post',
    data: data
  })
}
// 活动管理 活动巡演delete
export function toursDelete(data) {
  return request({
    url: `/operation/activity/tours/delete`,
    method: 'post',
    data: data
  })
}
// 活动管理 活动巡演relate
export function toursRelate(data) {
  return request({
    url: `/operation/activity/tours/relate`,
    method: 'post',
    data: data
  })
}
// 票务顾问管理 – 待审核
export function approvalList(params) {
  return request({
    url: `/operation/user/business/approval/page`,
    method: 'get',
    params: params
  })
}
// 票务顾问管理  票务审核信息详情
export function approvalInfo(id) {
  return request({
    url: `/operation/user/business/approval/info/${id}`,
    method: 'get'
  })
}
// 票务顾问管理  详情银行卡
export function approvalBank(params) {
  return request({
    url: `/operation/user/business/info/bank/list`,
    method: 'get',
    params: params
  })
}
// 票务顾问管理 票务审核处理
export function approvalHandler(data) {
  return request({
    url: `/operation/user/business/approval/handler`,
    method: 'post',
    data: data
  })
}
// 票务顾问管理  活动票务商
export function ticketSeller(utId, params) {
  return request({
    url: `/operation/activity/ticketSeller/${utId}/activities`,
    method: 'get',
    params: params
  })
}
// 上传活动封面图-座位图(type:1-活动封面图;2-活动座位图)
export function uploadImg(data) {
  return request({
    url: `/operation/activity/upload`,
    method: 'post',
    data: data
  })
}
// 目的地管理 国家 分页查询
export function countryPage(data) {
  return request({
    url: `/operation/country/page`,
    method: 'post',
    data: data
  })
}
// 目的地管理 国家 update
export function countryPageUpdate(data) {
  return request({
    url: `/operation/country/update`,
    method: 'post',
    data: data
  })
}
// 目的地管理 城市 分页查询
export function cityPage(data) {
  return request({
    url: `/operation/city/page`,
    method: 'post',
    data: data
  })
}
// 目的地管理 城市 update
export function cityPageUpdate(data) {
  return request({
    url: `/operation/city/update`,
    method: 'post',
    data: data
  })
}

